<?php

namespace App\Http\Controllers\Customers;

use App\Http\Controllers\BasicInterfaceController;
use App\Http\Controllers\Controller;
use App\Http\Requests\Customers\CustomersRequests;
use App\Http\Service\Customers\CustomersService;

class CustomersController extends Controller implements BasicInterfaceController
{
    // 暂时未开放
    public function phone_register(){
        $request = request()->only('code','phone');
        (new CustomersRequests())->scene('phone')->check($request);
    }

    public function account_register(){
        $request = request()->only('account','password','captcha','key');
        (new CustomersRequests())->scene('account')->check($request);
        (new CustomersService())->account_register($request);
    }

    public function getCurrentUser(){
        (new CustomersService())->getCurrentUserInfo();
    }

    public function signDate(){
        (new CustomersService())->signDate();
    }


    public function getList()
    {

    }

    public function getSelect()
    {

    }

    public function getSelectHasPage()
    {

    }

    public function getInfo($id)
    {

    }

    public function create()
    {

    }

    public function fakeDelete($id)
    {

    }

    public function fakeDeleteByIds($ids)
    {

    }

    public function delete()
    {

    }

    public function update($id)
    {

    }
}
